<?php

namespace App\Models\ModelFilters;

use EloquentFilter\ModelFilter;

class OrdersLogFilter extends ModelFilter
{
    public $relations = [];

   

    public function orderSn($orderSn)
    {
        return $this->whereLike('orders_logs.ordersn', $orderSn);
    }
	
    public function machinesImel($machinesImel)
    {
        return $this->whereLike('orders_logs.machines_imel', $machinesImel);
    }

    


    public function startTime($startTime){
        return $this->whereDate('orders_logs.created_at','>=', $startTime);
    }

    public function endTime($endTime){
        return $this->whereDate('orders_logs.created_at','<=', $endTime);
    }

}

